package com.light.mapcomponents;

import org.anddev.andengine.entity.primitive.Rectangle;

import com.badlogic.gdx.math.Vector2;
import com.huw.cameramanagers.CameraStoper;
import com.light.gamecomponents.physics.SaveWall;
import com.light.roller.Roller;

public class MapFactory {
	public MapFactory(){}
	
	static public StaticWall CreateStaticWall(Roller game,float x,float y,float sizex,float sizey)
	{
		 StaticWall temp = new StaticWall(new Rectangle(x,y,sizex,sizey), "none", 0);
		
		return temp;
	}
	
	static public StaticWall CreateStaticWall(Roller game, float x, float y, float sizex, float sizey, float rotation)
	{
		StaticWall temp = new StaticWall(new Rectangle(x,y,sizex,sizey), "none", rotation);
		return temp;
	}
	 
	static public CameraStoper CreateCameraStoper(Roller game,float x,float y,float sizex,float sizey)
	{
		CameraStoper temp = new CameraStoper(new Rectangle(x,y,sizex,sizey));			
		return temp;
	}
	 
	 
	static public MovingBarHolder CreateMovingBarHolder(Roller game,float x,float y,float sizex,float sizey)
	{
		MovingBarHolder temp = new MovingBarHolder(new Rectangle(x,y,sizex,sizey), "none");
		
		return temp;
	}
	
	static public SaveWall CreateSafeWall(Roller game,float x,float y,float rotation)
	{
		return new SaveWall(game,new Vector2 (x,y),rotation);
		
	}
}
